package libsys.general;

import javax.swing.JColorChooser;
import javax.swing.JFileChooser;

public class LIBSYSSystem
{
		public AllFrameList FrameList;
		
		public AllFrameItems FrameItems;
		
		public JColorChooser ColorChooser;
		public JFileChooser FileChooser;
		
		private Designer designer;
		
		public Listeners listeners;
		private ListenerAdder listenerAdder;
		
		public LIBSYSSystem()
		{
				FrameList = new AllFrameList();
				FrameItems = new AllFrameItems();
				
				ColorChooser = new JColorChooser();
				FileChooser = new JFileChooser();
				
				designer = new Designer(this);
				listeners = new Listeners(this);
				listenerAdder = new ListenerAdder(this);
		}
		
		public void designFrames()
		{
				designer.frameDesigner.designLoginFrame();
				designer.frameDesigner.designNavigationFrame();
				designer.frameDesigner.designCalculatorFrame();
				designer.frameDesigner.designSettingsFrame();
		}
		
		public void loadNavigationBooksBorrowingsPanel()
		{
				designer.panelDesigner.navigationPanelsDesigner.loadNavigationBooksBorrowingsPanel();
		}
		
		public void loadNavigationBooksReturnsPanel()
		{
				designer.panelDesigner.navigationPanelsDesigner.loadNavigationBooksReturnsPanel();
		}
		
		public void loadSettingsFontsPanel()
		{
				designer.panelDesigner.settingsPanelsDesigner.loadSettingsFontsPanel();
		}
		
		public void addListeners()
		{
				listenerAdder.addListeners();
		}
}